<html>
<head>
<meta charset="utf-8">
<title>Sound novel with JavaScript</title>
<script type="text/javascript" src="source/Game.js"></script>
<script type="text/javascript" src="source/PageMessage.js"></script>
<script type="text/javascript">

var __game ;

var init = function( ) {
  var canvas = document.getElementById( 'mainCanvas' ) ;
  var game = new Game( canvas ) ;
  __game = game ;
  window.onkeydown = game.handleKeyDown.bind( game ) ;
  window.onkeyup = game.handleKeyUp.bind( game ) ;
  canvas.addEventListener( 'click', game.handleOnClick.bind( game ), null ) ;
  canvas.addEventListener( 'touchstart', game.handleTouchStart.bind( game ), null ) ;
  game.run( ) ;
} ;

</script>
</head>

<body onLoad="init( )">

<p>
<canvas id="mainCanvas" width="640" height="480" />
</p>

<p>
This game is made by <a href="http://twitter.com/superhoge">@suprehoge</a>
</p>

</body>
</html>
